package com.qzl.common.common;

/**
 * @author: qzl
 * @date : 2025/6/25 10:24
 * @description: 返回
 */
public enum RespConstant {
    SUCCESS(200, "成功"),
    FAIL(999, "失败"),
    USERNAME_PASSWORD_ERROR(1001, "用户名或密码错误"),
    MESSAGE_TYPE_ERROR(1002, "消息类型错误"),
    MESSAGE_LENGTH_ERROR(1003, "数据长度不正确"),
    PROTOCOL_ERROR(1004, "协议错误"),
    VERSION_ERROR(1005, "版本错误"),





    ;
    private Integer code;
    private String message;
    private RespConstant(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
